<?php 
	session_start();
	if(!isset($_SESSION['username'])) {
		header("location:loginPage.php");
	}
	require_once "db-connection.php";
?>
<!DOCTYPE html>
<html>
	<head>
		<title>Photo album online | Page</title>
		<link rel="stylesheet" type="text/css" href="homePageStyles.css" />
	</head>
	<body>
		<nav>
			<div>Welcome, <?php echo $_SESSION["username"] . " !";?></div>
			<a href="logOut.php" style="position:absolute;top:50px;right:30px;font-size:0.8em;">Logout</a>
			<ul>
				<li><a href="createUserAlbum.php">Create Album</a></li>
				<li><a href="#">|</a></li>
				<li><a href="addImagesToAlbum.php">Upload Images</a></li>
				<li><a href="#">|</a></li>
				<li><a href="userAlbums.php">Albums</a></li>
				<li><a href="#">|</a></li>
				<li><a href="userProfile.php">Profile</a></li>
			</ul>
		</nav>
	</body>
</html>